<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link href="<?php echo base_url(); ?>css/admincp.css" type="text/css" rel="stylesheet" />
</head>
<body>
<table border="1px">
    <tr>
        <td>Hình ảnh</td>
        <td>text thay thế</td>
        <td>cập nhật</td>
        <td>xóa</td>
    </tr>
    <?php
    foreach($smileList as $smile):
        $path = base_url().$smile['path'];
        $title = $smile['title'];
        $text = $smile['text'];
        $id = $smile['id'];
        $updateHref = base_url().'admincp/smile/update/'.$id;
        echo "<tr>
                   <td><img src=\"$path\" alt=\"$title\"></td>
                   <td>$text</td>
                   <td><a href='$updateHref'>Cập nhật</a> </td>
                   <td><a href=''>Xóa!!!</a> </td>
              </tr>";
    endforeach;
     ?>
</table>
</body>
